home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / dcom / modems-part1 / 5666 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  4.6 KB

  1. Path: news.ultranet.com!usenet
  2. From: "Albert P. Belle Isle" <belleisl@cerberus-sys.com>
  3. Newsgroups: alt.winsock.trumpet,alt.winsock,comp.dcom.modems
  4. Subject: Re: My ISP's winsock settings?
  5. Date: Sat, 17 Feb 1996 10:19:53 -0500
  6. Organization: Cerberus Systems, Inc.
  7. Message-ID: <3125F219.3F6C@cerberus-sys.com>
  8. References: <4g38o9$mk5@zoom2.telepath.com>
  9. NNTP-Posting-Host: apb-p5-90.cerberus-sys.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (Win16; I)
  14.  
  15. michael@intellisys.net wrote:
  16. > I recently asked my ISP what his winsock settings were so I could try
  17. > to avoid packet fragmentation, maximize file transfers, etc.  They
  18. > E-mailed me the following:
  19. > MTU: 1500
  20. > MSS: 212
  21. > RWIN: 848
  22. > From what I've read (on Curt's High Speed Modem FAQ and Al's Winsock
  23. > Tuning FAQ) these settings seem a little odd to me.  I'm no expert by
  24. > any means, but it sure would be nice to hear from someone who is (AL?
  25. > Curt? Anybody?)  My Trumpet version 2.1f settings are:
  26. > MTU: 1500
  27. > MSS: 1460
  28. > RWIN: 8195
  29. > Should I leave mine alone or change them to my ISP's settings?
  30. > Thanks.
  31. > Michael B. Kintner
  32. > michael@intellisys.net
  33. > This space reserved for an appropriately
  34. > witty, thought provoking, and currently
  35. > undetermined signature file.
  36.  
  37. Michael:
  38.  
  39. The idea of matching your ISP's IP parameters (like MTU) is good general
  40. practice, since anything you get will be routed through his routers, and you
  41. might as well look like "one of the guys" on his Local Area Network. (Not
  42. all transfers use TCP/IP; some use UDP/IP - like RealAudio or VDOLive.)
  43.  
  44. If you use an MTU the same size as the routers on your access provider's
  45. Local Area Network (an IP parameter), you can set your MSS (a TCP
  46. parameter for transfers that might come from outside the LAN over the
  47. Internet) to anything that will fit in an IP transmission unit no larger
  48. than that value (LAN MTU - 40), and still look to the LAN like "just
  49. another member of the family." (The MTU tells the LAN routers "anything
  50. the other guys can handle, I can." Obviously, a "standard" 536-byte TCP 
  51. segment coming from a site out on the Internet is never going to demand that
  52. large an IP transmission unit; your present 1460-byte MSS would.)
  53.  
  54. TCP settings (like MSS/RWIN), however, can be anything that fits in his
  55. maximum routing packet - i.e. MSS no larger than his MTU minus 40 bytes for
  56. headers.
  57.  
  58. The objective is to amortize the header bytes (overhead) over as much real
  59. data as possible without getting router fragmentation of your packets. In
  60. other words, the larger MSS is, the smaller the percentage the header bytes
  61. represent. But, MSS+40 must fit within the MTU of *every* router on the path
  62. from the download server to you - not just your ISP's.
  63.  
  64. Your ISP's recommendation will most certainly avoid fragmentation, but will
  65. result in up to 40/(212+40), or 16% maximum overhead - a bit stiff. I think
  66. you'll find that just about any path can handle the Internet default MTU 0f
  67. 576, so setting your MSS=536 will give you better throughput with 7%
  68. overhead.
  69.  
  70. You may find that particular paths from servers from which you get very
  71. large files (like MPEG movies) will handle MSS=1024 or even the MSS=1460. If
  72. you don't get fragmentation, use the largest you can in those cases. Most of
  73. the time, if you want a "safe" setting, 536 is good enough. (This will cause
  74. most servers to respond with either 536- or 512-byte data segments.)
  75.  
  76. His RWIN of 4 times MSS indicates that your ISP's allocating at least 4
  77. packet buffers per dial-in connection. Since this is more than the sometimes
  78. blindly left unchanged default of 3 on some communications servers, it means
  79. he's set it conciously. This in turn probably means you can use an RWIN of
  80. as large a multiple of your MSS as you might practically wish.
  81.  
  82. You may find a multiple of more than 8 or 10 results in sluggish response
  83. from web-browsing while doing a file download in the background. (Your RWIN
  84. setting of 5.613 times your MSS leads me to wonder why you'd want every
  85. sixth TCP data segment to be 0.613 of the size of the others <g>.)
  86.  
  87. In any case, while mis-tuning can make a 28.8Kbps modem seem a lot slower,
  88. that connect rate will limit you to uncompressible downloads of
  89. 3.2KBytes/sec. While there's no limit on how *badly* your winsock can be
  90. tuned, this does define the best you can do. Once you get that speed, any
  91. further tuning can't make a modem faster ;-)
  92.  
  93. Regards,
  94.  
  95. Al
  96.  
  97.  
  98. -- 
  99. ==================================================================
  100. Albert P. Belle Isle
  101. Cerberus Systems, Inc.
  102.  
  103. Al's Winsock Tuning FAQ -
  104.        http://www.cerberus-sys.com/~belleisl/mtu_mss_rwin.html
  105. ==================================================================
  106.